from datetime import timedelta


class Config:
    DEBUG = 'True'
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:@localhost:3306/flask_03'
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    SECRET_KEY = 'jdjad8sdajifa90a0v0avao'

    JWT_SECRET_KEY = "alita666666"
    JWT_EXPIRATION_DELTA = timedelta(seconds=3600 * 48)
    JWT_VERIFY_CLAIMS = ['signature', 'exp', 'iat']
    JWT_REQUIRED_CLAIMS = ['exp', 'iat']
    JWT_AUTH_ENDPOINT = 'jwt'
    JWT_ALGORITHM = 'HS256'
    JWT_LEEWAY = timedelta(seconds=10)
    JWT_AUTH_HEADER_PREFIX = 'JWT'
    JWT_NOT_BEFORE_DELTA = timedelta(seconds=0)

class DevelopmentConfig(Config):
    ENV = 'development'


class ProductionConfig(Config):
    ENV = 'production'
    DEBUG = 'False'
